
export default {
	state: {
		houseInfoForm: {
			houseSn: ''
		},
		couponInfoForm:{
			couponSn:''
		}
	},
	mutations: {
		SAVE_HOUSE_INFO(state, info) {
			// 保存房源信息，用于房源上传时暂存
			state.houseInfoForm = Object.assign({}, state.houseInfoForm, info)
		},
		CLEAR_HOUSE_INFO(state){
			state.houseInfoForm={houseSn: ''}
		},
		SAVE_COUPON_INFO(state, info) {
			// 保存房源信息，用于房源上传时暂存
			state.couponInfoForm = Object.assign({}, state.couponInfoForm, info)
		},
		CLEAR_COUPON_INFO(state){
			state.couponInfoForm={couponSn: ''}
		},
		
	},
	actions: {
	},
	getters: {
		houseInfoForm: state => state.houseInfoForm,
		couponInfoForm:state =>state.couponInfoForm
	}
}